use Output::hash_string::{string_hash, string_nocase_hash};
use Output::hash_pointer::pointer_hash;
use Output::hash_int::int_hash;
mod common;
use common::alloc_testing::*;
use common::framework::{null_test_function, run_tests, UnitTestFunction};
#[test]
fn test_pointer_hash() {
    let test1 = "this is a test";
    let test2 = "this is a tesu";
    let test3 = "this is a test ";
    let test4 = "this is a test";
    let test5 = "This is a test";
    assert!(string_hash(test1) != string_hash(test2));
    assert!(string_hash(test1) != string_hash(test3));
    assert!(string_hash(test1) != string_hash(test5));
    assert!(string_hash(test1) == string_hash(test4));
}
#[test]
fn test_string_nocase_hash() {
    let test1 = "this is a test";
    let test2 = "this is a tesu";
    let test3 = "this is a test ";
    let test4 = "this is a test";
    let test5 = "This is a test";
    assert!(string_nocase_hash(test1) != string_nocase_hash(test2));
    assert!(string_nocase_hash(test1) != string_nocase_hash(test3));
    assert!(string_nocase_hash(test1) == string_nocase_hash(test5));
    assert!(string_nocase_hash(test1) == string_nocase_hash(test4));
}
fn main() {
    run_tests(tests);
    println!("num_assert: {}", num_assert);
}
